<%--
  Created by IntelliJ IDEA.
  User: tangzhe
  Date: 2017/8/30
  Time: 13:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>demo1</title>
</head>
<body>

<a href="http://localhost:8080/webdemo/demo1?name=唐哲&pwd=123456">模拟一个get请求</a>

<form action="http://localhost:8080/webdemo/demo1" method="post">
    <input type="text" name="nameP" />
    <input type="password" name="pwdP" />
    <input type="submit" value="模拟post请求" />
</form>


<form action="http://localhost:8080/webdemo/demo2" method="post">
    <input type="text" name="name2" />
    <input type="password" name="pwd2" />
    <input type="submit" value="测试监听器用" />
</form>

<a href="http://localhost:8080/webdemo/demo3?name=唐哲&pwd=123456">测试cookie和session</a>

</body>
</html>
